FROM registry.cn-hangzhou.aliyuncs.com/zceri-public/alpine-java:jre8-slim

MAINTAINER chenyejian

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

RUN mkdir -p /ycrep-server/logs

WORKDIR /ycrep-server

EXPOSE 8080

#EXPOSE 20880

ADD ../target/yunyao-web.jar ./app.jar

#ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom",  "-DDUBBO_IP_TO_REGISTRY=47.111.121.181","-jar", "app.jar"]
ENTRYPOINT ["java","-jar","app.jar"]

#CMD ["--spring.profiles.active=test"]